﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="ACompany.OrderProcessing.Model"
        assembly="ACompany.OrderProcessing.Model">

	<class name="ACompany.OrderProcessing.Model.Product" table="Products" lazy="false">

		<id name="Id" column="id" type="guid">
			<generator class="guid" />
		</id>

		<property name="Name">
			<column name="Name" sql-type="varchar(50)" not-null="true" />
		</property>

		<property name="Price">
			<column name="Price" sql-type="decimal(18, 2)" not-null="true" />
		</property>

		<property name="Stock">
			<column name="Stock" sql-type="integer" not-null="true" />
		</property>
		
	</class>

</hibernate-mapping>